﻿using System;
using System.Web;
using System.Xml;
using SyCODE.Component;
using SyCODE.Component.DataFactory;
using System.Data.Common;
using System.Collections.Specialized;
using SyCODE.Component.Cryptography;
using SyCODE.Component.Security;

namespace SyCODE.Blog.Admin
{
    /// <summary>
    /// HomeUpdate.aspx 的处理程序
    /// </summary>
    public class HomeUpdate : HandlerBase
    {
        public override void ProcessRequest(HttpContext context)
        {
            if (this.Authenticated)
            {
                string xmlPath = AppPath.GetAppRootPath() + "tidyup.xml";
                XmlDocument tidyup = new XmlDocument();
                tidyup.Load(context.Request.InputStream);
                tidyup.Save(xmlPath);
            }
        }
    }
}
